package com.example.app.controller;

import com.example.app.annotations.Auth;
import com.example.app.common.BaseResponse;
import com.example.app.common.Role;
import com.example.app.utils.ResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MainController {

    @GetMapping("/health")
    @Auth(mustRole = Role.Admin)
    public BaseResponse<String> health() {
        return ResultUtils.success("接口正常");
    }
}
